(navigation image)
Home American Libraries | Canadian Libraries | Universal Library | Community Texts | Project Gutenberg | Children's Library | Biodiversity Heritage Library | Additional Collections
Search: Advanced Search
Anonymous User (login or join us)
Upload
See other formats

Full text of "Arduino"

Notifying Doorbell with PushingBox 



i 



Make Projects 



build, hack, tweak, share, discover,' 



Notifying Doorbell with 



PushingBox 

Written By: Clement Storck 



PARTS: 



Arduino or clone (1) 



SUMMARY 

This project will help you to hack your doorbell to send Push notification and an email with 
an attached picture when somebody's at the door. It use the free PushingBox service to 
delegate all the programming part and make things easy. 



© Make Projects www.makeprojects.com Page 1 of 7 



Notifying Doorbell with PushingBox 




API PushingBox 



-L 




Ardjino + Ethernet 



° 



Doorbell 



Web Camera 




• How does it work ? 

• 1. When the doorbell is pushed, 
the Arduino sends an HTTP 
request to the PushingBox API. 

• 2. PushingBox launches the 
user's scenario and gets a 
picture from the web camera. 

• 3. PushingBox sends a Push 
notification to the user's phone 
and a mail message with the 
picture attached. 





• Prepare your material. You need: 
• An Arduino + Ethernet Shield 



A Doorbell 



A soldering iron 

A 10K resistor 

A web camera (optional) 



© Make Projects 



www.makeprojects.com 



Page 2 of 7 



Notifying Doorbell with PushingBox 




Open your doorbell. 

Solder wires to the button's terminals 



Close the doorbell. 





Plug the wires into the Arduino. 

• One wire on the 5v pin; 

• One wire on the 3rd input pin; 

• The 10K resistor between GND 
and the 3rd pin. 



© Make Projects 



www.makeprojects.com 



Page 3 of 7 



Notifying Doorbell with PushingBox 



Step 5 




• Test the connectivity with a simple 
Arduino program. 



Step 6 



>k - Notifications in the 




DASHBOARD MY SERVICES V> SCENARIOS SETT1NCS API HELP 




SERVICES 



Add a service 

jj Here you can select one of tfve various services that are available on PushingBox. 



Add a service 



Your services [1) 

Here you car Find ere services you have subscribed to. 



Type 


Configuration Name 


Parameter 












Email Clement. 


dementj@lg.mail.CQm 










Email 


Edit 




Delete 















Contact Privacy ©PushingBox 



& 



• The hardware part is finished. Let's 
define the way you will be notified. 

• Go to http://www.pushingbox.com . 

• Login with your Google account. 

• Go to the My Services page. 



Click on Add a service. 



© Make Projects 



www.makeprojects.com 



Page 4 of 7 



Notifying Doorbell with PushingBox 





DASHBOARD MriERVKES Wf SCENARIOS SETTINGS API WLP 



SERVICES 



Add a service 

• 




>nowl Service 




-r ..,-,. 





r 



Efiull 

Just j mere ep-jil service f 



Twittir 



Vckc robfluton <i.a), rj 



Prowl 



Pmhnnr.ta 

Fjih «Kr"lLJtjWl VHVlCC fof Ifl^T* 



Tiiuh 



Ptb*A d ■ Rail MKifcibon wm» *w iPtwns. 

inttN « on rar Vhone and pnt jw APi fry gn 3>a btm 



App Store 



rMfflv w sffl^ P*tpH Hff^iH^: 



Prowi !(*on( Ln<=<nf 



» »GcM-?itftfS»Wn3e bdi»J lim 



Select tfnsFYtaT 



Select bhti iervice 



Sdcct thfcserrice 



Sd«c 0* wvtc* 



Select tHtwvkx 




OftSMftOAfiD MYHflyiCG MY SCEWAOS StTT^KS W HELP 



SERVICES 






# + 



Add a service 

HtttjOu e«i MHett *f**f (Ke »4rimii-»ehii«i lS*t «rt ivaliM* M PuiMnJ Bo« 



Your services (2J 

HHt yc j cvh find the urvisff y^ii h*rf tuEUfifced to. 



thi* 

i ".ut 
Prowl 



Confifurjtlon Mime 
Eir^iar^riit 



Piunrtcr 

ttafneing»siK***o«n 

ContKt Privity #ftiihin56oj 






• Click on the service by which you want be notified. 

• Use Prowl or Pushme.to for iPhone Push notification; 

• Notifry for Android Push notification; 

• Toasty for Windows Phone Push notification. 

• Enter the name of your new service and fill in the API that this application gave you when 
you installed it. 

• Click Submit. 



© Make Projects 



www.makeprojects.com 



Page 5 of 7 



Notifying Doorbell with PushingBox 








OK 



fVM*Jc±a Staff* 



OASM&QABO MVMRVittS W iCinjOtX StTTiNCS HELP 



5CENARI05 



* 



Alld.iMlcn.jrto 

Hut jwu ufi crtit* i fttwictMrie Md*dd «ti4r4. 

Entf a r*r* For your Kwnitfa. 



CbuHsvfjEiop 



~i i lit a' ,1k.* "*« km rta 



bwntlwdy'i 11 P* «w 



Your scenarios (0 scenario created) 

Hfs#- i&v t jri t\ivA jUyouf ictfi n l oi on ^ t o m^ c fw t* fl . OicV c^i frUrci oi to ritftqtf?* i. 



You hiutfil subscribed bo my of dot service* yet. 



fJS«S*0 Ptn/Kf OFijfittna&gEi 



<3 



u/hinq oh 



ht MiiuMtStarct 



D*5H«WtD MfrStftWUS M* SCENARIOS «1T*«S Hl\f 



SCENARIOS 



^omebooy s at the door ^n"* 1 

Heri you tar hnd evcrr*rt»rc; of jroir Kmirm. 
Qjc oci ufd kn jciier for this scenario 



ft+t* A&tntmii 



'J^-ueiD vJMU£fAA?Wa* 



Cor>ltcC Privity r^Pliih r^fiw; 



• Now, go to the My Scenarios page. 

• Create a scenario called "Somebody's at the door" 

• Click on Create scenario. 



Click on Add an Action. 



Step 9 



SCENARIOS 



^^^W^™ j^rl ^r™ ' ^^ ^^ ^Tl " ■' ' ™* ^^^^^ 



' "■ "■ ■■■' ' 



p/hmq oh 



SCENARIOS 



I — >- — TW«Wi-™.rrH 



•■■ ■! * i * -h fcr 



■ ■■ "■'■' 




SCENARIOS 



ta-i/brtUvrtMrl 




First, add an action using the Email Service. 

Fill in the mail Subject and the Body. 

The third field is optional and is for attaching a shot from your IP camera to the 
email. Fill in the URL (publicly reachable) of your web camera. The camera's output 
must be a picture less than 100KB in size. 

Do the same with your Push notification service and click the Back button. 




© Make Projects 



www.makeprojects.com 



Page 6 of 7 



Notifying Doorbell with PushingBox 



Step 10 



/hinq oh 



HiMUisoftStarek 



DASHBOARD MY SERVICES MYSCENARICS SETTINGS API 



HELP 



SCENARIOS 



Add a scenario 

w Here you can crea :e a new scenario and add actions. 

Enter a name for your scenario. 



Configuration 



Name oF your new Scena ria 



Create- scenario 



Your scenarios (1 scenario created) 

Here you car find all your scenarios previously created. Click en Manage to add actions.. 



Scenario name 


DevicelD 
















v7BB13EFAA7BGCFA 














Somebody's at trie door 


Test 




Manage 




Delete 



















Contact Privacy ©PushingBox 



• Your scenario is now created. 

• Click on "Test" to test the scenario. 

• You should receive a Push 
notification on your phone and an 
email. 

• Make a note of the 
"DevicelD" value of this 
scenario. You will paste it into the 
Arduino code. 




Step 11 



PushingBox_Arduino_Vl_0_Ethernet_Official | Arduino 1.0 




// General code from http://HHw.ptislilnqpox.coB for Arduino + Ethernet Shield (official) 



// 
//// 

#include -; : .h> 
#include Ethernet ,h> 

///////////////// 
// MODIFY HERE // 
///////////////// 
byte mac[] - { Bxee, SxAA, 6xB8 t 6xCC, QxOE, 0x19 }; //Be sure this address is unique in your network 

//Your secret DevID from Pu$ninojBor*co«i, You can use multiple DevID on multiple Pin if you want 
#define DEVID1 "v?B613EFAA7B6CFA- //Scenario s "The mailbox is open" 

//Numeric Pin where you connect your switch 

#define pinDevidl 3 // Example : the Milbox switch Is connect to the Pin 3 

// Debug mode 
#deftne DEBUG true 
/////// 
//End// 
/////// 

■■'.:■■■ serverName[] = "opi .pushingbox^coii"; 
boolean pinDevidlState = '..;■:■; 



A 



* 




• Download the Arduino source code 
from the PushingBox API page and 
open it. 

• lnthe#define devidi line, 
paste the DevicelD of your 
scenario. Make sure you enclose it 
in quotes as shown. 

• Compile the code and program 
your Arduino. 

• You're done! Test it, install it on 
your door and enjoy! :) 



This document was last generated on 201 2-1 0-30 05:53:1 4 PM. 



© Make Projects 



www.makeprojects.com 



Page 7 of 7